package com.hotelsystem.service;

import com.hotelsystem.pojo.Employee;

import java.util.List;


public interface EmployeeService {
    /**
     * 通过员工对象 查询员工信息
     * @param employee
     * @return
     */
    List<Employee> getAllEmployeeByEmployee(Employee employee) throws Exception;

    /**
     * 删除员工信息
     * @param empName
     * @throws Exception
     */
    void deleteEmpInfoByName(String empName) throws  Exception;

    /**
     * 添加员工信息
     * @param employee
     * @throws Exception
     */
    void addEmpInfo(Employee employee,String imgBase64) throws  Exception;
    /**
     * 修改员工信息
     * @param employee
     */
    void updateEmpInfoByName(Employee employee,String imgBase64) throws Exception;
    /**
     * 通过userName查询Emp对象
     * @param username
     * @return
     * @throws Exception
     */
    Employee getEmpInfoByuserName(String username) throws Exception;

    /**
     * 根据员工名称查询信息
     * @param username
     * @return
     * @throws Exception
     */
    Employee login(String username) throws Exception;

    /**
     * 修改密码
     * @param
     * @return
     * @throws Exception
     */
    void update(Integer empId,String newpassword) throws Exception;
}
